* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  border: 1px solid rgb(207, 188, 288);
  width: 500px;
  height: 500px;
  margin: 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(247, 230, 183);
}

.container .chessboard {
  width: 92%;
  height: 92%;
  /* 设置表格的行列之间没有间隙 */
  border-collapse: collapse;
}

.chessboard td {
  border: 1px solid black;
  position: relative;
}

.chess {
  border: 1px solid lightgray;
  border-radius: 50%;
  position: absolute;
  top: -50%;
  left: -50%;
  width: 90%;
  height: 90%;
  color: lightgray;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.white {
  background-color: #fff;
}

.black {
  background-color: #000;
}

/* 获胜棋子 */
.win {
  border: 1px solid red;
  box-shadow: 0 0 3px 2px red; /* 红色阴影 */
}
